﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SanPham/MasterPageSanPham.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="ThemSanPham.aspx.cs" Inherits="Admin_SanPham_ThemSanPham" Title="Thêm sản phẩm" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">

<div style="padding:12px 12px 12px 12px;">
<div>
        <div class="title">
         Thêm sản phẩm
        </div>                  
        <div>
          <table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#cccccc"> 
                
                
                 <tr>
                    <td style="width:30%">Tên sản phẩm</td>
                    <td style="width:70%"><asp:TextBox ID="txt_TenSP" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td style="width:30%">
                        Danh mục</td>
                    <td style="width:70%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_DanhMuc" runat="server">
                        </asp:DropDownList></td>
                </tr>   
                <tr>
                    <td style="width:30%">
                        Doanh nghiệp</td>
                    <td style="width:70%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_DoanhNghiep" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>           
                  
                   <tr>
                    <td style="width:30%">
                        Giá gốc</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_GiaGoc" runat="server"></asp:TextBox></td>
                </tr>   
                   <tr>
                    <td style="width:30%">
                        Giá bán</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_GiaBan" runat="server"></asp:TextBox>
                    </td>
                </tr>   
                   <tr>
                    <td style="width:30%">
                        Ngày bắt đầu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_NgayBatDau" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%">
                        Ngày hết hạn</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_NgayHetHan" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                    
                 <tr>
                    <td style="width:30%">
                        Số lượng bán</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_SoLuongBan" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%; height: 45px;">
                        Số lượng tối đa</td>
                    <td style="width:70%; height: 45px;">
                        <asp:TextBox ID="txt_SoLuongToiDa" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%">
                       Hình Ảnh</td>
                    <td style="width:70%">
                          
<div id="attachment" class="attachment" style="display:none;">
<div id="dropcap" class="dropcap">1</div>
<div class="labels">Hình:<br/>Chú thích:</div>
<asp:FileUpload ID="file" runat="server" />
<a href="#" onclick="javascript:removeFile(this.parentNode.parentNode,this.parentNode);">Xóa</a>
<br/> <input id="desc" name="desc" type="text" maxlength="55" size="55"/>
</div>

<div id="attachments" class="container">
<br/><a id="addupload" href="javascript:addUpload(10, 'desc', 'file')">Thêm</a><br/><br/>

<span id="attachmentmarker">

</span>

</div>
 
                   </td>
                </tr> 
                <tr>
                    <td style="width:30%">Mô tả</td>
                    <td style="width:70%">
                        <FTB:FreeTextBox ID="ftb_MoTa" runat="server">
                        </FTB:FreeTextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%">
                        Quy định sử dụng</td>
                    <td style="width:70%">
                        <FTB:FreeTextBox ID="ftb_QuyDinhSP" runat="server">
                        </FTB:FreeTextBox>
                   
                    </td>
                </tr> 
                <tr>
                    <td style="width:30%">
                      Địa điểm sử dụng</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_DiaDiemSuDung" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:30%">Bản đồ</td>
                    <td style="width:70%">
                       <asp:FileUpload ID="fu_BanDo" runat="server" />
                    </td>
                </tr>   
                 <tr>
                    <td style="width:30%">
                       Chiết khấu</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_ChietKhau" runat="server"></asp:TextBox>
                    </td>
                </tr> 
                
                 <tr>
                    <td style="width:30%">
                        Tình trạng sản phẩm</td>
                    <td style="width:70%">
                        <asp:DropDownList ID="ddl_TinhTrangSP" runat="server">
                        </asp:DropDownList> 
                    </td>
                </tr> 
                
                   <tr>
                    <td style="width:30%">
                        Nhân viên</td>
                    <td style="width:70%">
                        <asp:DropDownList ID="ddl_NhanVien" runat="server">
                        </asp:DropDownList> 
                    </td>
                </tr> 
                <tr>
                    <td style="width:30%"></td>
                    <td style="width:70%"><asp:Button ID="btn_Add" runat="server" Text="Thêm sản phẩm" OnClick="btn_Add_Click"/></td>
                </tr>            
            </table>
        </div>
 </div>
 </div>
</asp:Content>

